package com.xdcplus.web.common.enums;

/**
 * @Description
 * @Author xyy
 * @Date 2023/5/8 14:19
 */
public enum FloralBasketIsBcEnum {
    YES("Y", "分流"),
    NO("N", "不分流"),
    ;

    private String code;

    private String msg;

    public static String getMsg(String code) {
        for (FloralBasketIsBcEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getMsg();
            }
        }
        return null;
    }

    FloralBasketIsBcEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
